﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_LayoutPeopleSearch.cshtml";
}

@Html.Action("SearchParameters","PeopleSearch")

<div class="searchresults">

    @Html.Action("SearchResult", "PeopleSearch")


</div>

<script type="text/javascript">
    $(".resultSearch").live("click", function () {
        var form = $("#searchpeopleForm");
        $.ajax({
            url: form.attr("action"),
            type: "POST",
            data: form.serialize(),
            success: function (data) {
                $(".searchresults").html(data);
            }
        });
    });

    


</script>